package cn.wolfcode.luowowo.hotel.service.impl;

import javax.annotation.Resource;
import cn.wolfcode.luowowo.hotel.mapper.HotelFacilityMapper;
import cn.wolfcode.luowowo.hotel.domain.HotelFacility;
import cn.wolfcode.luowowo.hotel.service.IHotelFacilityService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class HotelFacilityServiceImpl implements IHotelFacilityService {

    @Autowired
    private HotelFacilityMapper hotelFacilityMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelFacilityMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelFacility record) {
        return hotelFacilityMapper.insert(record);
    }

    @Override
    public HotelFacility selectByPrimaryKey(Long id) {
        return hotelFacilityMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(HotelFacility record) {
        return hotelFacilityMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<String> getByIds(Long[] facilityIdsArr) {
        return hotelFacilityMapper.selectByIds(facilityIdsArr);
    }

}
